import 'package:casdon/modules/home/data/api/auth_user_info_api.dart';

class AuthUserInfoModel {
  final String userId;
  final String userType;
  final String userName;
  final String nickName;
  final String password;

  AuthUserInfoModel({required this.userId,
          required this.userType, 
          required this.userName, 
          required this.nickName, 
          required this.password});


  // 静态方法转换
  static AuthUserInfoModel fromApi(ResponseAuthUserInfoApi response) {
    return AuthUserInfoModel(
      userId: response.userId,
      userType: response.userType,
      userName: response.userName,
      nickName: response.nickName,
      password: response.password
    );
  }
}